package co.gov.medellin.ssti.sub.paoyer.common.exception;

import javax.mail.MessagingException;

import co.gov.medellin.ssti.sub.paoyer.common.util.EmailSender;

/**
 * Gestiona el envio de mensajes de excepcion.
 * 
 * @version 1.0
 */
public class ExceptionSender implements Runnable {

	SystemException systemException;

	public ExceptionSender(SystemException systemException) {
		this.systemException = systemException;
	}

	public void run() {
		try {
			EmailSender.postExceptionMail(this.systemException);
		} catch (MessagingException e) {
			System.err.println("/******** TDSUB - cwsub");
			e.printStackTrace();
			System.err.println("TDSUB - cwsub ********/");
		}

	}

}